package com.youzhi.backend.exception;

/**
 * 异常枚举类
 *
 * @author mengxu
 */
public enum EcpEnum {

    unknown_error(100, "未知异常"),

    no_authority(101, "没有权限进行该操作"),

    no_login(102, "未登陆"),

    user_name_repeat(103, "{}用户已存在"),

    field_no_blank(104, "{}字段不能为空"),

    login_fail(105, "用户名或密码错误"),

    illegal_operation(106, "非法操作"),

    role_id_match_error(107, "角色匹配失败"),

    role_name_repeat(108, "角色名已存在"),

    query_params_is_empty(109, "请求参数为空"),

    password_error(110, "密码错误"),

    passwords_are_different(111, "密码输入不一致"),

    user_not_exist(112, "用户不存在");


    public int code;

    public String msg;


    EcpEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


}
